org.eclipse.vtp.framework.engine.http
Class HttpConnectorContext
java.lang.Object
org.eclipse.vtp.framework.engine.http.HttpConnectorContext
- All Implemented Interfaces:
- org.osgi.service.http.HttpContext
public class HttpConnectorContext
- extends java.lang.Object
- implements org.osgi.service.http.HttpContext
An HttpContext implementation that forwards invocations to an
HttpConnector.
- Author:
- Lonnie Pryor
| Fields inherited from interface org.osgi.service.http.HttpContext |
AUTHENTICATION_TYPE, AUTHORIZATION, REMOTE_USER |
|
Method Summary |
java.lang.String |
getMimeType(java.lang.String path)
|
java.net.URL |
getResource(java.lang.String path)
|
boolean |
handleSecurity(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpConnectorContext
public HttpConnectorContext(org.osgi.service.http.HttpContext defaultContext,
HttpConnector connector)
- Creates a new HttpConnectorContext.
- Parameters:
defaultContext - The default HTTP context.connector - The HttpConnector instance to use.
getMimeType
public java.lang.String getMimeType(java.lang.String path)
- Specified by:
getMimeType in interface org.osgi.service.http.HttpContext
getResource
public java.net.URL getResource(java.lang.String path)
- Specified by:
getResource in interface org.osgi.service.http.HttpContext
handleSecurity
public boolean handleSecurity(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws java.io.IOException
- Specified by:
handleSecurity in interface org.osgi.service.http.HttpContext
- Throws:
java.io.IOException